// 
// MyClass.cs
//  
// Author:
//       Tomáš Vondráček <tomas.vondracek@gmail.com>
// 
// Copyright (c) 2010 Tomas Vondracek
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

using System;
using Mono.Addins;		//we need this reference to declare this assembly as an addin

[assembly:Addin ("SampleAddin1", "1.0")]		// name and version
[assembly:AddinDependency("ConnectIM", "0.1")]	// if we want to connect this addin to the addin host, we need to add the dependency
[assembly:AddinAuthor ("Tomas Vondracek")]	//optional

// for detailed instructions see
// http://monoaddins.codeplex.com/wikipage?title=Reference%20Manual&referringTitle=Documentation

/// <summary>
/// sample addin showing Mono.Addins extension functionality through attributes
/// </summary>
namespace SampleAddin1
{
	/// <summary>
	/// The class "MyClass" is *extension* to the "/IM/StartupCommand" *extension point* defined in addin host
	/// and is to be run right after the appliction starts
	/// </summary>
	[Extension(Path="/IM/StartupCommand")]
	public class MyClass : IM.Interfaces.ICommand	// this class will represent the command as defined in shared IM.Interfaces library
	{
		#region ICommand implementation
		public void Run ()
		{
			// the command is called when addin host run all extensions, registered to the extension path specified
			Console.WriteLine("Hello World!! I'm very simple useless addin! :-)");
		}
		#endregion
	}
}

